#!/bin/bash
cd ~/app-root/data/temp/Nexus4
aicpUrl=$(curl -s "http://dwnld.aicp-rom.com/?device=oneplus3t" |grep -o "http[a-zA-Z0-9_:\/\.\-]*\.zip" |head -1)
if ! grep -q "$aicpUrl" aicpUrl; then
    echo $aicpUrl > aicpUrl
    ~/app-root/data/github-sh/Nexus4/openload_uploader.sh remote "$aicpUrl" "OnePlus3T"
fi
